#ifndef HTTPGET_H
#define HTTPGET_H

#include <QObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QDebug>
#include <QByteArray>

class HttpGet : public QObject
{
    Q_OBJECT
public:
    explicit HttpGet(QObject *parent = 0);
    void doConnect();

public slots:
    void readyRead();
    QByteArray getResult() const;

signals:
   void finished();

private:
    QNetworkAccessManager* manager;
    QNetworkReply* reply;
    QByteArray result;
};

#endif // HTTPGET_H
